package DataAccess;

/** 
 Data Access Layer Object Collection Of Dail_log
*/
public class Dail_logCollection extends DataAccessCollectionBase
{
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ����ͻ���
	public Dail_logCollection()
	{
		super();
	}
	@Override
	protected DataTable BuildTable()
	{
		DataTable dt = new DataTable();
		dt.Columns.Add("Dail_id",Integer.class);
		dt.Columns.Add("Dail_name",String.class);
		dt.Columns.Add("Hy_num",Integer.class);
		dt.Columns.Add("Hy_name",String.class);
		dt.Columns.Add("Daig_id",String.class);
		dt.Columns.Add("Daig_shijian",java.time.LocalDateTime.class);
		dt.Columns.Add("Xiaofei",java.math.BigDecimal.class);
		dt.Columns.Add("Tichengbili",java.math.BigDecimal.class);
		dt.Columns.Add("Tichengjine",java.math.BigDecimal.class);
		dt.Columns.Add("Addtime",java.time.LocalDateTime.class);
		return dt;
	}
	@Override
	protected DataAccessBase GetItemByIndex(int index)
	{
		return new Dail_log(_DataTable.Rows[index]);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ����ͻ���
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ����
	public final DataTable getTable()
	{
		return super._DataTable;
	}
	public final Dail_log getItem(int index)
	{
		return new Dail_log(_DataTable.Rows[index]);
	}
	public final void setItem(int index, Dail_log value)
	{
		_DataTable.Rows.RemoveAt(index);
		_DataTable.Rows.InsertAt(value.getDataRow(),index);
	}
	public enum Field
	{
		Dail_id,
		Dail_name,
		Hy_num,
		Hy_name,
		Daig_id,
		Daig_shijian,
		Xiaofei,
		Tichengbili,
		Tichengjine,
		Addtime;

		public int getValue()
		{
			return this.ordinal();
		}

		public static Field forValue(int value)
		{
			return values()[value];
		}
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ����
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ��������
	protected final boolean ListByCondition(String condition)
	{
		String sql = "" + "\r\n" +
"				Select" + "\r\n" +
"					Dail_id," + "\r\n" +
"					Dail_name," + "\r\n" +
"					Hy_num," + "\r\n" +
"					Hy_name," + "\r\n" +
"					Daig_id," + "\r\n" +
"					Daig_shijian," + "\r\n" +
"					Xiaofei," + "\r\n" +
"					Tichengbili," + "\r\n" +
"					Tichengjine," + "\r\n" +
"					Addtime" + "\r\n" +
"				  From Dail_log" + "\r\n" +
"				 Where " + condition + "\r\n" +
"			";
		return super.ListBySql(sql);
	}

	public final boolean ListAll()
	{
		String condition = "1=1";
		return ListByCondition(condition);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ��������
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ���淽��
	public final boolean ListByDailiID(int DailiID)
	{
		String condition = "1=1 and Dail_id = " + DailiID + " order by Daig_shijian desc";
		return ListByCondition(condition);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ���淽��
}